package com.sfteam.bmw.router;

import com.jfinal.config.Routes;
import com.sfteam.bmw.api.CarouselApi;
import com.sfteam.bmw.api.FeedbackApi;
import com.sfteam.bmw.api.NewsApi;
import com.sfteam.bmw.api.UserApi;
import com.sfteam.bmw.interceptor.TokenInterceptor;

/**
 * 前端路由配置
 * 
 * @author knight322
 *
 */
public class ApiRouter extends Routes {

	@Override
	public void config() {
		addInterceptor(new TokenInterceptor());
		add("/api/user", UserApi.class);
		add("/api/feedback", FeedbackApi.class);
		add("/api/news", NewsApi.class);
		add("/api/carousel", CarouselApi.class);
	}

}
